import * as echarts from 'echarts';
type EChartsOption = echarts.EChartsOption;

export default function pieOption5(myChart: echarts.ECharts) {
    return {
        title: {
            text: 'Pie Chart5',
            subtext: 'Fake Data',
            left: 'center'
        },
        tooltip: {
            trigger: 'item'
        },

        series: [
            {
                type: 'pie',
                roseType: 'radius',
                radius: ['45%', '60%'],
                label: {
                    show: true,
                    position: 'center',
                    color: "#4FF778",
                    fontSize: '12',
                },
                data: [
                    {
                        value: 1048,
                        name: '24' + "\n" + "时间",
                        itemStyle: {
                            color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
                                {
                                    offset: 0,
                                    color: "#fb512c",
                                },
                                {
                                    offset: 1,
                                    color: "#df2350",
                                },
                            ]),
                        },
                        
                    }
                ],
                hoverAnimation: false,
                labelLine: {
                    show: false, //隐藏指示线
                },
                
            }
        ]
    } as EChartsOption;
}

